package com.etc.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.etc.entity.Province;
import com.etc.service.ProvinceService;

@Controller
@RequestMapping(value="province")
public class ProvinceController {
	@Resource
	private ProvinceService pService;
	
	//查询中国所有的省份
	@RequestMapping(value="findall")
	@ResponseBody
	public List<Province> findAllProvince(){
		
		return pService.finAllProvince();
	}
	

}
